sysroot: Avoid bad double-free
authorColin Walters <walters@verbum.org>
Thu, 3 Oct 2013 22:30:07 +0000 (18:30 -0400)
committerColin Walters <walters@verbum.org>
Thu, 3 Oct 2013 22:34:24 +0000 (18:34 -0400)
commit1641ade72822ea4d88c87c95584f2f286e0175ef
tree2bb1d6db66a4077cc0c1e0438ae6c259f599178f
parent2b2c6ead22db9cb50a9de7fddc53b4411972656c
sysroot: Avoid bad double-free

If a deployment is somehow in the list twice, the hash table will free
the *new* value with g_hash_table_insert which gets all broken.  Just
use g_hash_table_replace().
src/libostree/ostree-sysroot-cleanup.c